from ocms.merch.owasp_payments.models import OWASPPayment
from django.contrib import admin

class OWASPPaymentOptions(admin.ModelAdmin):
    list_display = ('id', 'order_link', 'method', 'event', 'chapter', 'balance_due' )
    actions = ['authorize_payments']
    
    def authorize_payments(EventAdmin, request, queryset):
        for payment in queryset:
            payment.authorize(request.user)

    authorize_payments.short_description = "Authorize selected payments"

admin.site.register(OWASPPayment, OWASPPaymentOptions)


        


    
    